package com.wteam.dragon.model.pojo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.*;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import com.wteam.dragon.system.basebean.bean.BaseBean;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author 陈晓辉
 * @date 2020/3/15 0:58
 */
@Data
@Table
@TableName
@EqualsAndHashCode(callSuper = true)
public class RolesDepts extends BaseBean {
    @IsKey
    @IsNotNull
    @IsAutoIncrement
    @TableId(type = IdType.AUTO)
    @ColumnType(MySqlTypeConstant.BIGINT)
    @Column(comment = "自增id")
    private Long id;

    @IsNotNull
    @ColumnType(MySqlTypeConstant.BIGINT)
    @Column(comment = "对应的角色id")
    private Long roleId;

    @IsNotNull
    @ColumnType(MySqlTypeConstant.BIGINT)
    @Column(comment = "对应的部门id")
    private Long deptId;
}
